import sqlalchemy.orm
from sqlalchemy.orm import declarative_base

from sqlalchemy import Column, Integer, String


# 声明基础类
Base = declarative_base()

# 定义 ORM 模型类
class WbImageUrl(Base):
    __tablename__ = 'wb_image_url'
    id = Column(Integer, primary_key=True, autoincrement=True)
    realurl = Column(String(1024), nullable=True)
    pathUrl = Column(String(1024), nullable=True)
    uid = Column(String(64), nullable=True)
    uidName = Column(String(64), nullable=True)

    def __init__(self, realurl, pathUrl, uid,uidName):
        self.realurl = realurl
        self.pathUrl = pathUrl
        self.uid = uid
        self.uidName=uidName



